import * as nodePath from "path";

export const ROOT_DIR = nodePath.join(__dirname, "..");
export const TEST_S_CEL = nodePath.join(ROOT_DIR, "./static/开发大神专用词库【官方推荐】.scel");

export function getTravelBetween(
  start: number,
  end: number = 0,
  step: number = 1
): Array<number> {
  const arr: Array<number> = [];
  if (start > end) {
    [start, end] = [end, start];
  }
  for (let i = start; i < end; i += step) {
    arr.push(i);
  }
  return arr;
}
